package com.htfyun.ft.fragment.factory;

import android.os.Bundle;
import android.view.View;

import com.htfyun.ft.R;
import com.htfyun.hardware.LedController;

import androidx.annotation.Nullable;

public class FragmentLed extends FactoryBaseFragment {

    @Override
    protected int getLayoutRes() {
        return R.layout.fragment_factory_led;
    }

    @Override
    protected void onInitView(@Nullable Bundle savedInstanceState) {
        super.onInitView(savedInstanceState);

    }

    @Override
    protected void onVisible() {
        super.onVisible();
        LedController.INSTANCE.setAllLedBrightness(0xff);
    }

    @Override
    protected void onInvisible() {
        super.onInvisible();
        LedController.INSTANCE.setAllLedBrightness(0);
    }
}
